package com.example.ss.service;

import com.example.ss.dao.MaterialMapper;
import com.example.ss.entity.Material;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: xwg
 * @CreateDate: 2023/8/25
 */

@Service
public class MaterialService {
    @Autowired
    private MaterialMapper materialMapper;

    public Material insert(Material material) {
        materialMapper.insert(material);
        return material;
    }
}
